namespace SocketGateway
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var options = new WebApplicationOptions { Args = args, ContentRootPath = AppContext.BaseDirectory, WebRootPath = "/wwwroot" };
            var builder = WebApplication.CreateBuilder(options);
            builder.Host.ConfigureAppConfiguration((hostBuilder, configBuilder) =>
            {
                configBuilder.SetBasePath(AppContext.BaseDirectory);
            });
            builder.Services.AddServiceCore();
            //builder.Services.AddEndpointsApiExplorer();
            //builder.Services.AddSwaggerGen();

            var app = builder.Build();

            //// Configure the HTTP request pipeline.
            //if (app.Environment.IsDevelopment())
            //{
            //    app.UseSwagger();
            //    app.UseSwaggerUI();
            //}
            app.UseMiddlewareCore();

            app.Run();
        }
    }
}